﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using HelenServer.BugEngine.Contracts;
using Microsoft.EntityFrameworkCore;

namespace HelenServer.BugEngine.Dal;

[Table("Product")]
public partial class Product
{
    [Key]
    public int Id { get; set; }

    [StringLength(32)]
    [Unicode(false)]
    public string Name { get; set; } = string.Empty;

    [StringLength(256)]
    [Unicode(false)]
    public string Description { get; set; } = string.Empty;

    public int? ProductOwner { get; set; }

    public int? TestLeader { get; set; }

    public int? ReleaseManager { get; set; }

    public int CreatedBy { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime CreatedDate { get; set; }

    public ProductStatus Status { get; set; } = 0;

    public bool Deleted { get; set; } = false;
}